import pyqrcode

sn = str(input("请输入要生成二维码的内容："))
new_sn = sn.encode('utf-8')
# print(new_sn)
url = pyqrcode.create(sn, error='L', version=None, mode='binary').show()
url.png('code.jpg', scale=6, module_color=[0, 0, 0, 128], background=[0xff, 0xff, 0xcc])
